// ${desc}
<#if responseType == "json_string">
public String ${service}(${service?cap_first}Model model, int czr){
</#if>
<#if responseType == "response">
public ${service?cap_first}Response ${service}(${service?cap_first}Model model, int czr){
</#if>
    ${service?cap_first}Request.Builder requestBuilder = ${service?cap_first}Request.newBuilder();
    <#list paramsMap?keys as key>
    Optional.ofNullable(model.get${(key?replace("_",""))?cap_first}()).ifPresent(requestBuilder::set${(key?replace("_",""))?cap_first});
    </#list>
    <#if paging == "是">
    Optional.ofNullable(model.getPaging()).ifPresent(requestBuilder::setPaging);
    Optional.ofNullable(model.getCurrent()).ifPresent(requestBuilder::setPageNo);
    Optional.ofNullable(model.getPageSize()).ifPresent(requestBuilder::setPageSize);
    </#if>
    requestBuilder.setCzr(czr);
    ${service?cap_first}Request request = requestBuilder.build();
<#if responseType == "json_string">
    return stub.${service}(request).getResult();
</#if>
<#if responseType == "response">
    return stub.${service}(request);
</#if>
}
